﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Itech_Run.Domain.Shared.Base;

namespace Itech_Run.Sys.Domain.Entity
{

    public partial class Sys_Job: CustomAggregateRoot<string>
    {

        [Required]
        [StringLength(50)]
        public string Name { get; set; }

        [Required]
        [StringLength(50)]
        public string JobGroup { get; set; }

        [StringLength(200)]
        public string? Description { get; set; }

        [Required]
        [StringLength(100)]
        public string CronExpression { get; set; }
      
        [Column(TypeName = "dateTime")]
        public DateTime? LastTime { get; set; }

        public int RedundancyMinute { get; set; }

        public bool IsActive { get; set; }

        [StringLength(255)]
        public string? ApiUrl { get; set; }

    }
}
